package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "新增版本更新请求对象", description = "新增版本更新请求对象")
public class AddVersionReq {

    @NotNull(message = "客户端不能为空")
    @ApiModelProperty(name = "client", value = "客户端：1：Android，2：IOS", required = true)
    private Integer client;

    @NotBlank(message = "当前版本(版本号)不能为空")
    @ApiModelProperty(name = "currentVersion", value = "当前版本(版本号)", required = true)
    private String currentVersion;

    @NotBlank(message = "版本信息(更新内容)不能为空")
    @ApiModelProperty(name = "versionInfo", value = "版本信息(更新内容)", required = true)
    private String versionInfo;

    @NotBlank(message = "更新标题不能为空")
    @ApiModelProperty(name = "versionTitle", value = "更新标题")
    private String versionTitle;

    @NotBlank(message = "应用市场下载链接不能为空")
    @ApiModelProperty(name = "marketDownloadLink", value = "应用市场下载链接", required = true)
    private String marketDownloadLink;

    @NotBlank(message = "最低兼容版本不能为空")
    @ApiModelProperty(name = "lowestCompatibleVersion", value = "最低兼容版本", required = true)
    private String lowestCompatibleVersion;


}
